package com.gage.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.gage.commons.result.PageInfo;
import com.gage.model.CmsCatalog;

public  interface ICmsCatalogService {
	String SERVICE_NAME = "catalogServiceImpl";
	/****************20170513***********/
	public  List<CmsCatalog> findCatalogByPidAndType(String Pid,String catalogType);
	
	public  String getCatalogTreeByParentIdAndType(String pid,String type);
	
	PageInfo selectDataGrid(PageInfo pageInfo);
	public  int getLevel(String catalogcode);
	public  int updateMoveCatalog(String id, String parentid);
	public  CmsCatalog loadCatalogByCatalogCode(String code);
	int updateByCatalogCodeSelective(CmsCatalog cmsCatalog);
	int insertSelective(CmsCatalog cmsCatalog);
	public  boolean removeCatalog(List<String> ids);
	/****************end 20170513********/
	public  String getCatalogNavigator(int i, Integer id);


	public  Integer getMaxSequence(Integer id);

	

	public  CmsCatalog getCatalogByAlias(String alias);
	public   Integer getAliasCount(String alias);
	public  boolean updateCheckCode();
	public  List<CmsCatalog> getChildByCheckCode(String parentid,String catalogtype);

	public  String getDepartmentTreeByParentId(String id);
	
	CmsCatalog findprofessor(Integer id);
	
	List<CmsCatalog> findByConditionCatalog();
	
	CmsCatalog  findcatalogCheckcode(String id);

	public  List<CmsCatalog> findByTypeParentId(int parentId, String catalogType);

	public  String getcatalogCheckcode(String cid);
	/**
	 * 根据栏目Id模糊匹配查询分页查询
	 * @param catalogId  栏目Id
	 * @param catalogName 模糊匹配词
	 * @return
	 */
	//public  List<CmsCatalog> searchCatalogInfo(PaginationUtil<CmsCatalog> page,int catalogid);
	/**
	 * 根据栏目Id模糊匹配查询分页查询总和
	 * @param page
	 * @param catalogid
	 * @return
	 */
	//public  int searchCatalogInfoCount(PaginationUtil<CmsCatalog> page,int catalogid);
	
	/**
	 * 分页查询
	 * @return
	 */
	//public  List<Catalog> loadMoreCatalogInfo(PaginationUtil<CmsCatalog> page,int catalogid);
	/**
	 * 分页查询数据总和
	 * @param keyword
	 * @return
	 */
	//public  int loadMoreCatalogInfoCount(PaginationUtil<CmsCatalog> page,int catalogid);
	
	/**
	 * 二级菜单分页查询
	 * @return
	 */
	//public  List<CmsCatalog> loadMoreCatalogInfo2Menu(PaginationUtil<CmsCatalog> page,int catalogid);
	/**
	 *  二级菜单分页查询数据总和
	 * @param keyword
	 * @return
	 */
	//public  int loadMoreCatalogInfoCountFor2Menu(PaginationUtil<CmsCatalog> page,int catalogid);

}
